// ----------------------------------------------------------------------------

function ASTParse(x) {
    var result = %JsonAstParse(x);
    return result;
}

function SetupAST() {
  // Initialize the AST object
  var ast = new $Object();

  // Install the functions
  InstallFunctions(ast, DONT_ENUM, $Array(
    "parse", ASTParse //,
    //"execute", ASTExecute
  ));
  
  // Add AST object to the JSON object
  %SetProperty($JSON,
               "AST",
               ast,
               DONT_ENUM); // DONT_ENUM |  DONT_DELETE | READ_ONLY);
}

SetupAST();
